package com.ruoyi.domain;

import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;
import java.util.List;

/**
 * 三级分类#category_three
 * @TableName category_three
 */
public class CategoryThree extends BaseEntity implements Serializable {
    /**
     * 三级分类主键#primary
     */
    private Integer cthrId;

    /**
     * 一级分类#foreign#category_one=cone_id,cone_name
     */
    private Integer coneId;
    private List<Integer> coneIds;

    /**
     * 二级分类#foreign#category_two=ctwo_id,ctwo_name
     */
    private Integer ctwoId;

    /**
     * 分类名称
     */
    private String cthrName;
    /**
     * 一级分类名称
     */
    private String coneName;
    /**
     * 二级分类名称
     */
    private String ctwoName;

    /**
     * 分类序号
     */
    private Integer cthrNum;
    private Integer cthrNumFrom;
    private Integer cthrNumTo;

    /**
     * 分类代号
     */
    private String cthrCode;

    /**
     * 分类说明
     */
    private String cthrInfo;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return "CategoryThree{" +
                "cthrId=" + cthrId +
                ", coneId=" + coneId +
                ", coneIds=" + coneIds +
                ", ctwoId=" + ctwoId +
                ", cthrName='" + cthrName + '\'' +
                ", coneName='" + coneName + '\'' +
                ", ctwoName='" + ctwoName + '\'' +
                ", cthrNum=" + cthrNum +
                ", cthrNumFrom=" + cthrNumFrom +
                ", cthrNumTo=" + cthrNumTo +
                ", cthrCode='" + cthrCode + '\'' +
                ", cthrInfo='" + cthrInfo + '\'' +
                '}';
    }

    public List<Integer> getConeIds() {
        return coneIds;
    }

    public void setConeIds(List<Integer> coneIds) {
        this.coneIds = coneIds;
    }

    public String getConeName() {
        return coneName;
    }

    public void setConeName(String coneName) {
        this.coneName = coneName;
    }

    public String getCtwoName() {
        return ctwoName;
    }

    public void setCtwoName(String ctwoName) {
        this.ctwoName = ctwoName;
    }

    public Integer getCthrNumFrom() {
        return cthrNumFrom;
    }

    public void setCthrNumFrom(Integer cthrNumFrom) {
        this.cthrNumFrom = cthrNumFrom;
    }

    public Integer getCthrNumTo() {
        return cthrNumTo;
    }

    public void setCthrNumTo(Integer cthrNumTo) {
        this.cthrNumTo = cthrNumTo;
    }

    /**
     * 三级分类主键#primary
     */
    public Integer getCthrId() {
        return cthrId;
    }

    /**
     * 三级分类主键#primary
     */
    public void setCthrId(Integer cthrId) {
        this.cthrId = cthrId;
    }

    /**
     * 一级分类#foreign#category_one=cone_id,cone_name
     */
    public Integer getConeId() {
        return coneId;
    }

    /**
     * 一级分类#foreign#category_one=cone_id,cone_name
     */
    public void setConeId(Integer coneId) {
        this.coneId = coneId;
    }

    /**
     * 二级分类#foreign#category_two=ctwo_id,ctwo_name
     */
    public Integer getCtwoId() {
        return ctwoId;
    }

    /**
     * 二级分类#foreign#category_two=ctwo_id,ctwo_name
     */
    public void setCtwoId(Integer ctwoId) {
        this.ctwoId = ctwoId;
    }

    /**
     * 分类名称
     */
    public String getCthrName() {
        return cthrName;
    }

    /**
     * 分类名称
     */
    public void setCthrName(String cthrName) {
        this.cthrName = cthrName;
    }

    /**
     * 分类序号
     */
    public Integer getCthrNum() {
        return cthrNum;
    }

    /**
     * 分类序号
     */
    public void setCthrNum(Integer cthrNum) {
        this.cthrNum = cthrNum;
    }

    /**
     * 分类代号
     */
    public String getCthrCode() {
        return cthrCode;
    }

    /**
     * 分类代号
     */
    public void setCthrCode(String cthrCode) {
        this.cthrCode = cthrCode;
    }

    /**
     * 分类说明
     */
    public String getCthrInfo() {
        return cthrInfo;
    }

    /**
     * 分类说明
     */
    public void setCthrInfo(String cthrInfo) {
        this.cthrInfo = cthrInfo;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CategoryThree other = (CategoryThree) that;
        return (this.getCthrId() == null ? other.getCthrId() == null : this.getCthrId().equals(other.getCthrId()))
            && (this.getConeId() == null ? other.getConeId() == null : this.getConeId().equals(other.getConeId()))
            && (this.getCtwoId() == null ? other.getCtwoId() == null : this.getCtwoId().equals(other.getCtwoId()))
            && (this.getCthrName() == null ? other.getCthrName() == null : this.getCthrName().equals(other.getCthrName()))
            && (this.getCthrNum() == null ? other.getCthrNum() == null : this.getCthrNum().equals(other.getCthrNum()))
            && (this.getCthrCode() == null ? other.getCthrCode() == null : this.getCthrCode().equals(other.getCthrCode()))
            && (this.getCthrInfo() == null ? other.getCthrInfo() == null : this.getCthrInfo().equals(other.getCthrInfo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCthrId() == null) ? 0 : getCthrId().hashCode());
        result = prime * result + ((getConeId() == null) ? 0 : getConeId().hashCode());
        result = prime * result + ((getCtwoId() == null) ? 0 : getCtwoId().hashCode());
        result = prime * result + ((getCthrName() == null) ? 0 : getCthrName().hashCode());
        result = prime * result + ((getCthrNum() == null) ? 0 : getCthrNum().hashCode());
        result = prime * result + ((getCthrCode() == null) ? 0 : getCthrCode().hashCode());
        result = prime * result + ((getCthrInfo() == null) ? 0 : getCthrInfo().hashCode());
        return result;
    }

}